package com.allesblinkt.mucom.common;

import java.util.Vector;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("response")
public class ServerResponse {
	
	private Vector<ClientItem> clients;
	
	private Enum<ResponseType> type;
	
	@XStreamAlias("response_type")
	public enum ResponseType {
		/**
		 * The client should consider itself inactive
		 */
		IDLE, 
		
		/**
		 * The client should consider itself active
		 */
		ACTIVE,
		
		/**
		 * The upload has been accepted and stored
		 */
		UPLOAD_ACCEPTED,
		
		
		/**
		 * The upload has been accepted and stored
		 */
		UPLOAD_FAILED,
		
			
		/**
		 * The upload has been accepted and stored
		 */
		REMOVAL_ACCEPTED
	}
	
	
	public ServerResponse(){
		clients = new Vector<ClientItem>();
	}


	


	/**
	 * @return the type
	 */
	public Enum<ResponseType> getType() {
		return type;
	}


	/**
	 * @param type the type to set
	 */
	public void setType(Enum<ResponseType> type) {
		this.type = type;
	}





	/**
	 * @param clients the clients to set
	 */
	public void setClients(Vector<ClientItem> clients) {
		this.clients = clients;
	}





	/**
	 * @return the clients
	 */
	public Vector<ClientItem> getClients() {
		return clients;
	}
}
